package com.kedacom.ctsp.authority.dto;

import com.kedacom.ctsp.web.dto.ImportDTO;
import lombok.Data;
import org.apache.commons.collections.map.HashedMap;

import java.util.Map;

/**
 * @author sunchenjie
 * @date 2017/12/23 0023
 */
@Data
public class UserImportDTO extends ImportDTO {

    @Deprecated
    public static String[] KEY_ARR = new String[]{"index", "code", "name", "parentCode", "roles"};
    public static Map<String, String> headerMapper = new HashedMap() {{
        put("人员编号", "personCode");
        put("人员姓名", "personName");
        put("用户名", "username");
        put("初始密码", "password");
        put("所属单位编号", "departmentCode");
        put("角色权限", "roleSign");
    }};
    public static Map<String, String> headerMapper_en = new HashedMap() {{
        put("OfficerCode", "personCode");
        put("Officer", "personName");
        put("Username", "username");
        put("InitialPassword", "password");
        put("DepartmentCode", "departmentCode");
        put("Role", "roleSign");
    }};
    //    序号	警员编号	警员姓名	用户名	初始密码	所属单位编号   角色权限
    //    1	0128187401	张三	        张三	123456	        1010    admin
    private String personId;
    private String personCode;
    private String personName;
    private String userId;
    private String username;
    private String password;
    private String departmentCode;
    private String roleSign;

}
